﻿/* 
Copyright (c) 2009, Aaron Moline <Aaron.Moline@MolineSoftware.com>

Permission is hereby granted, free of charge, to any person 
obtaining a copy of this software and associated documentation 
files (the "Software"), to deal in the Software without restriction, 
including without limitation the rights to use, copy, modify, merge, 
publish, distribute, sublicense, and/or sell copies of the Software, 
and to permit persons to whom the Software is furnished to do so, 
subject to the following conditions:

The above copyright notice and this permission notice shall be 
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 
DEALINGS IN THE SOFTWARE.
*/


using System;
using System.Text;
using MolineSoftware.DrupalXmlRpc.Classes;

namespace MolineSoftware.DrupalXmlRpc
{

    //public class DrupalRpcCommand
    //{
    //    /// <summary>
    //    /// Command for saving changes to Node.
    //    /// </summary>
    //    [CustomDescription("node.save")]
    //    public static int NodeSave = 1;

    //    /// <summary>
    //    /// Command for returning a Node.
    //    /// </summary>
    //    [CustomDescription("node.get")]
    //    public static int NodeGet = 2;

    //    /// <summary>
    //    /// Command for logging into Drupal XmlRpc Service.
    //    /// </summary>
    //    [CustomDescription("user.login")]
    //   public static int Login = 3;

    //    /// <summary>
    //    /// Command for logging out of the Drupal XmlRpc Service.
    //    /// </summary>
    //    [CustomDescription("user.logout")]
    //    public static int Logout = 4;

    //    /// <summary>
    //    /// Command for logging into the system
    //    /// </summary>
    //    [CustomDescription("system.connect")]
    //    public static int Connect = 5;

    //    /// <summary>
    //    /// Command for Sending Email.
    //    /// </summary>
    //    [CustomDescription("system.mail")]
    //    public static int SendMail = 6;
        
    //    /// <summary>
    //    /// Command for getting a user.
    //    /// </summary>
    //    [CustomDescription("user.get")]
    //   public static int  UserGet = 7;

    //    /// <summary>
    //    /// Error Encountered
    //    /// </summary>
    //    [CustomDescription("Asycn Error")]
    //    public static int AsyncError = 8;

    //    /// <summary>
    //    /// Command for getting a file.
    //    /// </summary>
    //    [CustomDescription("file.get")]
    //    public static int FileGet = 9;

    //    /// <summary>
    //    /// Command used for downloading file.
    //    /// </summary>
    //    [CustomDescription("download")]
    //    public static int DownloadFile = 10;

    //    /// <summary>
    //    /// Command used for Seraching nodes.
    //    /// </summary>
    //    [CustomDescription("search.nodes")]
    //    public static int SearchNodes = 11;

    //    /// <summary>
    //    /// Command used for Seraching nodes.
    //    /// </summary>
    //    [CustomDescription("views.get")]
    //    public static int ViewsGet = 12;

    //    /// <summary>
    //    /// Command used for Seraching nodes.
    //    /// </summary>
    //    [CustomDescription("system.getServices")]
    //    public static int ServicesGet = 1;
    //}

    /// <summary>
    /// Enum: The DrupalRpcCommand.
    /// </summary>
    public enum DrupalRpcCommand : int
    {
        /// <summary>
        /// Command for saving changes to Node.
        /// </summary>
        [CustomDescription("node.save")]
        NodeSave = 1,

        /// <summary>
        /// Command for returning a Node.
        /// </summary>
        [CustomDescription("node.get")]
        NodeGet = 2,

        /// <summary>
        /// Command for logging into Drupal XmlRpc Service.
        /// </summary>
        [CustomDescription("user.login")]
        Login = 3,

        /// <summary>
        /// Command for logging out of the Drupal XmlRpc Service.
        /// </summary>
        [CustomDescription("user.logout")]
        Logout = 4,

        /// <summary>
        /// Command for logging into the system
        /// </summary>
        [CustomDescription("system.connect")]
        Connect = 5,

        /// <summary>
        /// Command for Sending Email.
        /// </summary>
        [CustomDescription("system.mail")]
        SendMail = 6,

        /// <summary>
        /// Command for getting a user.
        /// </summary>
        [CustomDescription("user.get")]
        UserGet = 7,

        /// <summary>
        /// Error Encountered
        /// </summary>
        [CustomDescription("Asycn Error")]
        AsyncError = 8,

        /// <summary>
        /// Command for getting a file.
        /// </summary>
        [CustomDescription("file.get")]
        FileGet = 9,

        /// <summary>
        /// Command used for downloading file.
        /// </summary>
        [CustomDescription("download")]
        DownloadFile = 10,

        /// <summary>
        /// Command used for Seraching nodes.
        /// </summary>
        [CustomDescription("search.nodes")]
        SearchNodes = 11,

        /// <summary>
        /// Command used for Seraching nodes.
        /// </summary>
        [CustomDescription("views.get")]
        ViewsGet = 12,

        /// <summary>
        /// Command used for Seraching nodes.
        /// </summary>
        [CustomDescription("system.getServices")]
        ServicesGet = 13,

        /// <summary>
        /// Command used for Node Deletion
        /// </summary>
        [CustomDescription("node.delete")]
        NodeDelete =14 
    }

}
